package com.ybb.seckilldemo.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;



@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    // 通用
    SUCCESS(200, "SUCCESS"),
    ERROR(500, "服务器异常"),
    // 登录模块
    LOGIN_ERROR(500210,"用户名或密码错误"),
    Mobile_ERROR(500211,"手机号格式不正确"),
    BIND_ERROR(500212,"参数校验异常"),
    MOBILE_NOT_EXIST(500213,"手机号不存在"),
    // 秒杀5005
    EMPT_STOCK(500500,"库存不足"),
    REPEATE_ERROR(500501, "该商品每人限购一件"),
    ERROR_CAPTCHA(500502,"验证码错误，请重新输入"),
    ACCESS_LIMIT_REAHCED(5005043,"访问过于频繁,请稍后再试"),
    // 订单模块5503
    ORDER_NOT_EXIST(500300, "订单不存在"),

    ;
    private final Integer code;
    private final String message;
    }
